﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using TN_CMS.Domain.Entities;

namespace TN_CMS.Domain.Abstract
{
    public interface IProductRepository
    {
        #region Product

        List<Product> GetList(int pageIndex, int pageSize, out int total, string orderClause, string whereClause);

        Product GetDetail(int id);

        int Insert(Product detail);

        int Update(Product detail);

        #endregion

        #region Product Group

        List<ProductGroup> GetListGroup(int pageIndex, int pageSize, out int total, string orderClause, string whereClause);

        ProductGroup GetDetailGroup(int id);

        int InsertGroup(ProductGroup detail);

        int UpdateGroup(ProductGroup detail);

        #endregion
    } 
}
